package com.campus.commons.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 宿舍表
 * </p>
 *
 * @author Rin
 * @since 2020-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Dorm对象", description="宿舍表")
public class Dorm implements Serializable {
    /**
     * 所有的宿舍；
     * key 宿舍Id
     * value 宿舍名称
     */
    public static Map<Integer, Dorm> dorms = new HashMap<>();
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "宿舍编号")
    @TableField("dormNo")
    private Integer dormno;

    @ApiModelProperty(value = "楼层")
    private Integer floor;

    @ApiModelProperty(value = "1.男宿舍 2.女宿舍")
    private Integer gender;

    @ApiModelProperty(value = "负责老师")
    @TableField("teacherId")
    private Integer teacherid;


}
